{anchor:msg_qualifylead_0}
!! QualifyLead message
!!! Constructor
!!!! new COSA.Request.QualifyLead(lead, createAccount, createContact, createOpportunity, status, requestId)
|| Param || Type || Description ||
| lead | [COSA.EntityReference|COSA Namespace#lib_entityreference_0] | Lead |
| createAccount | {{boolean}} | Create Account |
| createContact | {{boolean}} | Create Contact |
| createOpportunity | {{boolean}} | Create Opportunity |
| status | {{number}} | Lead Status |
| requestId _(optional)_ | {{string}} | Request Unique Identifier (GUID) |
!!! Properties
|| Name || Type || Description ||
| lead | [COSA.EntityReference|COSA Namespace#lib_entityreference_0] | Lead |
| createAccount | {{boolean}} | Create Account |
| createContact | {{boolean}} | Create Contact |
| createOpportunity | {{boolean}} | Create Opportunity |
| status | {{number}} | Lead Status |
| sourceCampaignId | {{string}} | Source Campaign unique identifier (GUID) |
| opportunityCurrencyId | {{string}} | Opportunity Currency unique identifier (GUID) |
| opportunityCustomerId | {{string}} | Opportunity Customer unique identifier (GUID) |
| requestId _(optional)_ | {{string}} | Request Unique Identifier (GUID) |
!!! Example
{code:javascript}
var qualifyLead_0 = new COSA.Request.QualifyLead(
		new COSA.EntityReference('lead', 'XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX'),
        true,
        true,
        false,
        3);

//message execution
qualifyLead_0.execute(function ( r ) {
	//working with a response
});
//or
COSA.Request.Execute(qualifyLead_0, function ( r ) {
	//working with a response
});
{code:javascript}

[Back to Top|#tbl_contents_0]